<template lang="html">
  <div class="frog">
    <ul class="eyes">
      <li class="eye eye-left">
        <div class="eye-inner">
          <div class="pupil">
            <div class="light"></div>
          </div>
        </div>
      </li>
      <li class="eye eye-right">
        <div class="eye-inner">
          <div class="pupil">
            <div class="light"></div>
          </div>
        </div>
      </li>
    </ul>
    <div class="body">
      <div class="mouth"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'item1'
}
</script>

<style lang="scss" scoped>
@import "../../assets/scss/default.scss";
.frog {
  width: px2rem(120);
  height: px2rem(120);
  position: relative;
  .eyes {
    width: px2rem(86);
    height: px2rem(35);
    position: absolute;
    z-index: 2;
    top: px2rem(8);
    left: 0;
    right: 0;
    margin: auto;
    .eye {
      width: px2rem(35);
      height: px2rem(35);
      &:before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #A3D768;
      }
      &.eye-left {
        position: absolute;
        top: 0;
        left: 0;
      }
      &.eye-right {
        position: absolute;
        top: 0;
        right: 0;
      }
      .eye-inner {
        background-color: $white;
        width: 80%;
        height: 80%;
        position: absolute;
        top: 10%;
        left: 10%;
        border-radius: 50%;
        .pupil {
          background-color: #3F6A34;
          width: 60%;
          height: 60%;
          position: absolute;
          top: 20%;
          left: 20%;
          border-radius: 50%;
          .light {
            background-color: $white;
            width: 50%;
            height: 50%;
            position: absolute;
            top: 10%;
            left: 10%;
            border-radius: 50%;
          }
        }
      }
    }
  }
  .body {
    width: px2rem(110);
    height: px2rem(86);
    background-color: #A3D768;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    top: px2rem(25);
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: px2rem(4) px2rem(4) 0 0 rgba(163, 215, 104, 0.3);
    .mouth {
      width: px2rem(18);
      height: px2rem(22);
      border-bottom: px2rem(3) solid #3F6A34;
      position: absolute;
      top: px2rem(6);
      left: 0;
      right: 0;
      margin: auto;
      animation: smile 3.8s linear 0s infinite;
    }
  }
}
@keyframes smile {
  0% {
    border-radius: 0%;
  }
  20% {
    border-radius: 50%;
  }
  70% {
    border-radius: 50%;
  }
}
</style>
